forum

Home / DeveloperSection / Forums / How do I convert string value to a date format

How do I convert string value to a date format

Samuel Fernandes 1875 25-Jan-2014

How do I convert string value to a date format

string strDateFrom;
string strDateTo;              
CrystalDecisions.Shared.ParameterDiscreteValue DateValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
if ((strDateFrom != "") && (strDateTo !=""))     
{                                      
    DateValue.Value ="(From: " + strDateFrom + " - " + strDateTo +")";
}    
else    
{
    DateValue.Value ="(ALL DATES)";   
}


c# c# 
Updated on 25-Jan-2014

Can you answer this question?


Answer

1 Answers

Liked By